From f1614766cc8445f9de2affd131bbee6442aea088 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 6 Dec 2002 15:55:20 +0000 Subject: [PATCH] Include backslashes in args to 'fatal'. --- gpsbabel/Makefile | 4 ++-- gpsbabel/magnav.c | 8 ++++---- gpsbabel/main.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index 003114d5b..ad0814f03 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -31,8 +31,8 @@ dep: make clean && make CC="gcc -MMD" && cat *.d */*.d > /tmp/dep echo Edit Makefile and bring in /tmp/dep -VERSIONU=1_1_0_pre1206 -VERSIOND=1.1.0_pre1206 +VERSIONU=1_1_0_pre120602 +VERSIOND=1.1.0_pre120602 release: rm -fr gpsbabel-$(VERSIOND) cvs export -r gpsbabel_$(VERSIONU) -d gpsbabel-$(VERSIOND) gpsbabel diff --git a/gpsbabel/magnav.c b/gpsbabel/magnav.c index 730d3cfc2..c32f67f04 100644 --- a/gpsbabel/magnav.c +++ b/gpsbabel/magnav.c @@ -94,11 +94,11 @@ data_read(void) struct pdb_record *pdb_rec; if (NULL == (pdb = pdb_Read(fileno(file_in)))) { - fatal(MYNAME ": pdb_Read failed"); + fatal(MYNAME ": pdb_Read failed\n"); } if ((pdb->creator != MYCREATOR) || (pdb->type != MYTYPE)) { - fatal(MYNAME ": Not a Magellan Navigator file."); + fatal(MYNAME ": Not a Magellan Navigator file.\n"); } for(pdb_rec = pdb->rec_index.rec; pdb_rec; pdb_rec=pdb_rec->next) { @@ -204,11 +204,11 @@ my_writewpt(waypoint *wpt) opdb_rec = new_Record (0, 0, ct++, vdata-(char *)rec, (const ubyte *)rec); if (opdb_rec == NULL) { - fatal(MYNAME ": libpdb couldn't create record"); + fatal(MYNAME ": libpdb couldn't create record\n"); } if (pdb_AppendRecord(opdb, opdb_rec)) { - fatal(MYNAME ": libpdb couldn't append record"); + fatal(MYNAME ": libpdb couldn't append record\n"); } } diff --git a/gpsbabel/main.c b/gpsbabel/main.c index 4e51dfce0..6e5cda912 100644 --- a/gpsbabel/main.c +++ b/gpsbabel/main.c @@ -58,7 +58,7 @@ main(int argc, char *argv[]) char *optarg; if (argv[argn][0] != '-') { - fatal ("argument '%s' not understood",argv[argn]); + fatal ("argument '%s' not understood\n",argv[argn]); } if (argv[argn][1] == '?' || argv[argn][1] == 'h') { @@ -82,7 +82,7 @@ main(int argc, char *argv[]) fname = optarg; argn++; if (ivecs == NULL) { - fatal ("No valid input type specified"); + fatal ("No valid input type specified\n"); } ivecs->rd_init(fname, ivec_opts); ivecs->read(); -- 2.30.2